package com.appkubes.fintech.admin.application.signature.wukong.controller;
import com.appkubes.fintech.admin.application.signature.wukong.service.WukongSignService;
import com.appkubes.fintech.common.response.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;



@Slf4j
@Api(tags = "悟空签章")
@RestController
@RequestMapping("/signature/wukong/")
public class WukongSignController {

    @Resource
    private WukongSignService wukongSignService;

    @ApiOperation("自动签章")
    @GetMapping("/signAuto")
    public Response signAuto(@RequestParam("orderKey") String orderKey) {
        return wukongSignService.signAuto(orderKey);
    }

}
